package com.dyw.spzx.model.entity.product;

import com.dyw.spzx.model.entity.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Schema(description = "商品分类")
@Data
public class Category extends BaseEntity {


    private static final long serialVersionUID = 1L;
    @Schema(description = "分类名称")
    private String name;
    @Schema(description = "图片地址")
    private String imageUrl;
    @Schema(description = "父节点")
    private Long parentId;
    @Schema(description = "是否显示")
    private Integer status;
    @Schema(description = "排序")
    private Integer orderNum;
    private Boolean hasChildren;
    private List<Category> children;


}
